package cn.gson.crmdemo.model.vo;

import java.math.BigDecimal;
import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;

import cn.gson.crmdemo.model.pojo.Contract;
import cn.gson.crmdemo.model.pojo.Invoice;

@Entity
@Table(name = "regression_record")
public class RegressionInvoiceReturnsVo {
	@Id
	@GeneratedValue(strategy=GenerationType.IDENTITY)
	@Column(name="rr_id")
	private int rrId;

	@Temporal(TemporalType.TIMESTAMP)
	@Column(name="rr_date")
	private Date rrDate;

	@Column(name="rr_money")
	private BigDecimal rrMoney;

	@Column(name="rr_qc")
	private int rrQc;

	@Column(name="rr_sate")
	private int rrSate;

	@Column(name="r_id")
	private int rId;

	
	@Column(name="contract_id")
	private int contract;

	
	@Column(name="invoice_id")
	private int invoice;


	public int getRrId() {
		return rrId;
	}


	public void setRrId(int rrId) {
		this.rrId = rrId;
	}


	public Date getRrDate() {
		return rrDate;
	}


	public void setRrDate(Date rrDate) {
		this.rrDate = rrDate;
	}


	public BigDecimal getRrMoney() {
		return rrMoney;
	}


	public void setRrMoney(BigDecimal rrMoney) {
		this.rrMoney = rrMoney;
	}


	public int getRrQc() {
		return rrQc;
	}


	public void setRrQc(int rrQc) {
		this.rrQc = rrQc;
	}


	public int getRrSate() {
		return rrSate;
	}


	public void setRrSate(int rrSate) {
		this.rrSate = rrSate;
	}


	public int getrId() {
		return rId;
	}


	public void setrId(int rId) {
		this.rId = rId;
	}


	public int getContract() {
		return contract;
	}


	public void setContract(int contract) {
		this.contract = contract;
	}


	public int getInvoice() {
		return invoice;
	}


	public void setInvoice(int invoice) {
		this.invoice = invoice;
	}


	public RegressionInvoiceReturnsVo(int rrId, Date rrDate, BigDecimal rrMoney, int rrQc, int rrSate, int rId,
			int contract, int invoice) {
		super();
		this.rrId = rrId;
		this.rrDate = rrDate;
		this.rrMoney = rrMoney;
		this.rrQc = rrQc;
		this.rrSate = rrSate;
		this.rId = rId;
		this.contract = contract;
		this.invoice = invoice;
	}


	public RegressionInvoiceReturnsVo() {
		super();
		// TODO Auto-generated constructor stub
	}


	@Override
	public String toString() {
		return "RegressionInvoiceReturnsVo [rrId=" + rrId + ", rrDate=" + rrDate + ", rrMoney=" + rrMoney + ", rrQc="
				+ rrQc + ", rrSate=" + rrSate + ", rId=" + rId + ", contract=" + contract + ", invoice=" + invoice
				+ "]";
	}
	
	
	
}
